@import "../../styles/index.less";

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: @white;
  color: @text-color-secondary;

  &.bordered {
    border: 1px solid @border-color-base;
  }

  &.empty {
    .imgbox {
      width: 100px;
      height: 100px;
    }
  }

  &.error {
    .imgbox {
      width: 80px;
      height: 80px;
    }
  }

  &.loading {
    .imgbox {
      width: 60px;
      height: 60px;
    }
  }

  .imgbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;

    + .desc {
      margin-top: 20px;
    }

    > img {
      display: block;
      max-width: 100%;
      max-height: 100%;
    }
  }

  .desc {
    font-size: 14px;

    + .action {
      margin-top: 20px;
    }
  }

  button {
    display: inline-block;
    border: 1px solid @primary-color;
    background-color: @primary-color;
    color: @white;
    border-radius: 2px;
    padding: 6px 12px;
    text-align: center;
    min-width: 50px;
    outline: none;
    font-size: 12px;
    transition: border-color .3s ease, color .3s ease, background-color .3s ease;

    &:hover {
      text-decoration: none;
      background-color: darken(@primary-color, 8%);
    }
  }

  &.horizontal {
    flex-direction: row;

    .imgbox {
      width: 48px;
      height: 48px;

      + .desc {
        margin-top: 0;
        margin-left: 16px;
      }
    }

    .desc {
      font-size: 12px;

      + .action {
        margin-top: 0;
        margin-left: 12px;
      }
    }
  }
}
